layui.define([ 'form','layer','memberApi','laydate' ], function(exports) {
    var view = {};
    var form = layui.form;
    var $ = layui.$;
    var laydate = layui.laydate;
    var memberApi = layui.memberApi;
    Common.initKindedit(".kindEditor");
    laydate.render({
        elem : '.input-date',
    });

    form.on('submit(articleForm)', function(){
        var f = this;
        memberApi.articleSave($(f),function(data) {
          Common.info("文章发布成功");
          f.reset();
        });
        return false;
    });

	exports('article', view);
});